package com.p2p.service.loanManagementService;

import com.p2p.common.DTO.LoanDTO;
import com.p2p.common.DTO.LoanSelectDTO;
import com.p2p.common.base.RespResult;
import com.p2p.entity.Loan;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;

public interface LoanService {
    RespResult addLoan(Loan loan);

    RespResult selectAllLoanList(Integer currentPage, Integer pageSize);


    RespResult updateLoan(Loan loan);

    RespResult deleteLoan(Long id);

    RespResult selectLoanById(Long id);

    RespResult findLoanByCondition(Integer currentPage, Integer pageSize, LoanDTO loanDTO);

    RespResult addMaterialImage(MultipartFile file, Long id, HttpServletRequest request);

    RespResult addLoanInfoImg(MultipartFile file, Long id, HttpServletRequest request);
}
